import org.junit.Test;
import org.junit.runner.RunWith;
import org.linuxsogood.boot.Application;
import org.linuxsogood.boot.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author honway.liu
 * @date 2017/5/20 下午4:33
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class JunitBase {

    @Autowired
    PersonService personService;

    @Test
    public void insetTest() {
        personService.insertOne();
    }
}
